<div class="box">
	<%= link_to (image_tag pin.image(:medium)), pin %> <!-- Show the pin's image and call show action by linking it -->
	<p class="description">
		<%= pin.description %>
	</p>
	<p>
		<strong>
			Posted by <%= pin.user.name %>
		</strong>
	</p>
	<p>
		<!-- Only show for current user -->
		<% if current_user == pin.user %>
			<%= link_to 'Edit', edit_pin_path(pin) %> <!-- edit path needs the pin-id --> | 
		  <%= link_to 'Destroy', pin, method: :delete, data: { confirm: 'Are you sure?' } %>
		<% end %>
	</p>
</div>